package com.bitdiggers.fa.client.managed.ui;

import com.bitdiggers.fa.client.managed.request.InstitutionProxy;
import com.google.gwt.requestfactory.ui.client.ProxyRenderer;

public class InstitutionProxyRenderer extends ProxyRenderer<InstitutionProxy> {

    private static com.bitdiggers.fa.client.managed.ui.InstitutionProxyRenderer INSTANCE;

    protected InstitutionProxyRenderer() {
        super(new String[] { "id" });
    }

    public static com.bitdiggers.fa.client.managed.ui.InstitutionProxyRenderer instance() {
        if (INSTANCE == null) {
            INSTANCE = new InstitutionProxyRenderer();
        }
        return INSTANCE;
    }

    public String render(InstitutionProxy object) {
        if (object == null) {
            return "";
        }
        return object.getId() + " (" + object.getId() + ")";
    }
}
